/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spatialmarketplace.cem.model;

import java.util.Date;

/**
 * Reflects the notifications from the database.
 * @author Camila
 */
public class CEMNotification {
    
    private Integer notificationId;
    private Integer groupId;
    private Integer typeId;
    private String actionText;
    private String actionLink;
    private String typeImageLocation;
    private Date date;

    /**
     * Creates a new notification with the basic information for saving it in the database.
     * @param groupId
     * @param typeId
     * @param actionLink 
     */
    public CEMNotification(Integer groupId, Integer typeId, String actionLink) {
        this.groupId = groupId;
        this.typeId = typeId;
        this.actionLink = actionLink;
    }

    /**
     * Creates a notification to be read from the database.
     * @param notificationId
     * @param groupId
     * @param typeId
     * @param actionText
     * @param actionLink
     * @param typeImageLocation
     * @param date 
     */
    public CEMNotification(Integer notificationId, Integer groupId, Integer typeId, String actionText, String actionLink, String typeImageLocation, Date date) {
        this.notificationId = notificationId;
        this.groupId = groupId;
        this.typeId = typeId;
        this.actionText = actionText;
        this.actionLink = actionLink;
        this.typeImageLocation = typeImageLocation;
        this.date = date;
    }
    
    
    
    public String getActionLink() {
        return actionLink;
    }

    public void setActionLink(String actionLink) {
        this.actionLink = actionLink;
    }

    public String getActionText() {
        return actionText;
    }

    public void setActionText(String actionText) {
        this.actionText = actionText;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Integer getNotificationId() {
        return notificationId;
    }

    public void setNotificationId(Integer notificationId) {
        this.notificationId = notificationId;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getTypeImageLocation() {
        return typeImageLocation;
    }

    public void setTypeImageLocation(String typeImageLocation) {
        this.typeImageLocation = typeImageLocation;
    }

    
}
